←Select platform

SetRequestedImageThumbnail(RasterImage,int[],int[],int[]) Method

Summary

Sends the requested images to the control. This method is used when the low memory usage feature is enabled (for more information see EnableLowMemoryUsage(int32,int32,medicalviewerimageinformation[]))

Syntax

C#
VB
C++
public void SetRequestedImageThumbnail( 
   RasterImage image, 
   int[] indexes, 
   int[] widthArray, 
   int[] heightArray 
) 
  
Public Overloads Sub SetRequestedImageThumbnail( _ 
   ByVal image As Leadtools.RasterImage, _ 
   ByVal indexes() As Integer, _ 
   ByVal widthArray() As Integer, _ 
   ByVal heightArray() As Integer _ 
)  
             
            public: 
void SetRequestedImageThumbnail(  
   Leadtools.RasterImage^ image, 
   array<int>^ indexes, 
   array<int>^ widthArray, 
   array<int>^ heightArray 
)  
             

Parameters

image
the thumbnails to be set.

indexes
Array of Integers containing the index of each thumbnail in the cell.

widthArray
Array of Integers containing the width of the original image to each thumbnail.

heightArray
Array of Integers containing the height of the original image to each thumbnail.

Remarks
  • The low memory usage feature works by keeping the control from loading all the frames on runtime. Instead, the control will load only the frames that are currently visible on the cell. The control will send a request each time the user scrolls down or up, changes the number of visible frames, etc. For example, suppose the cell layout is a 2X2 (see Rows and Columns, and the user needs to load more than 100000 frames, the control will not load them all. Instead, this method will send a FramesRequested event when the cell is loaded, requesting 4 frames (1, 2, 3 and 4) (because the cell is 2X2). Once the user scrolls down the cell to view frame number 5, frame number 1 will be disposed of because it is no longer visible, and the event will be fired to request frame number 5. When frames are requested, the user is supposed to send them to the control using the SetRequestedImage method.
  • If the low memory usage feature is not needed, load images directly by assigning the image to the cell using the Image property.
Requirements

Target Platforms

Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.MedicalViewer Assembly